package com.yuyuan.thumb.util;

import com.yuyuan.thumb.constant.ThumbConstant;

/**
 * @author: 李鹤春
 * @date:   2025/6/24 11:29
 * @description: Redis Key 工具类
 * @version 1.0
 */
public class RedisKeyUtil {
  
    public static String getUserThumbKey(Long userId) {  
        return ThumbConstant.USER_THUMB_KEY_PREFIX + userId;
    }  
  
    /**  
     * 获取 临时点赞记录 key  
     */  
    public static String getTempThumbKey(String time) {  
        return ThumbConstant.TEMP_THUMB_KEY_PREFIX.formatted(time);  
    }  
  
}
